<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    request.setCharacterEncoding("UTF-8");
    String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=path%>/CSS/backLayout.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/CSS/bombBox.css">
</head>
<style>
	.findBtn1{
	 background: #427dff,background;
	 border-radius: 50px;
	 background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
	 background: -moz-linear-gradient(top,#57a0ff,#57a1ff); 
 	 background: linear-gradient(top,#57a0ff,#57a1ff);
  	 background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
  	 border: 1px solid #2576A8;
  	 box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
  	 color: #fff;
  	 height:40px;
     text-shadow: 1px 1px 0.5px #57a0ff;
     outline:none;
     margin-left: 100px
	}
	.findBtn1:hover{
	background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);	
	}
	
	 /**按钮样式**/ 
	.subtn1{
	 background:#57a0ff,background;
	 border-radius: 50px;
	 background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
	 background: -moz-linear-gradient(top,#57a0ff,#57a1ff); 
 	 background: linear-gradient(top,#57a0ff,#57a1ff);
  	 background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
  	 border: 1px solid #2576A8;
  	 box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
  	 color: #fff;
  	 height:40px;
     text-shadow: 1px 1px 0.5px #22629B;
     outline:none;
    }
    .btn{
	 background: #57a0ff,background;
	 border-radius: 50px;
	 background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
	 background: -moz-linear-gradient(top,#57a0ff,#57a1ff); 
 	 background: linear-gradient(top,#57a0ff,#57a1ff);
  	 background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
  	 border: 1px solid #2576A8;
  	 box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
  	 color: #fff;
  	 height:40px;
    text-shadow: 1px 1px 0.5px #22629B;
    outline:none;
  	}
    .subtn1:hover{
    background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
  	}
  	 .btn:hover {
    background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}
	.modal-data1 {
			  visibility: hidden; 
			  z-index: 1001;
			  width: 1000px;
			  min-height: 500px;
			  margin: 100px auto;
			  background-color: #FFFFFF;
			 /* border: 1px solid #C80B14;*/
			 -moz-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
        	 -webkit-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
      /*         box-shadow:0 0 10px #cccccc; 
			  box-shadow: #cccccc; */
			  box-shadow: 0 10px 20px #57a1ff inset,0 -10px 0 #57a0ff inset;
			  padding: 5px;
			  text-align: center;
			  position: fixed;
			  left: 22%;
		}
		
		.modal-data1 td{padding-left: 15px;padding-right: 15px}
		.modal-data1 tr:FIRST-CHILD td{padding: 0px 10px;}
		.modal-data1 tr{padding-top: 30px;height: 25px}
		.modal-data1 form table {
			margin: 0px
		}
		
		.findBtn2{
	 background: #427dff,background;
	 border-radius: 50px;
	 background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
	 background: -moz-linear-gradient(top,#57a0ff,#57a1ff); 
 	 background: linear-gradient(top,#57a0ff,#57a1ff);
  	 background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
  	 border: 1px solid #2576A8;
  	 box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
  	 color: #fff;
  	 height:40px;
     text-shadow: 1px 1px 0.5px #57a0ff;
     outline:none;
     margin-left: 100px
	}
	.findBtn2:hover{
	background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);	
	}
	
	 /**按钮样式**/ 
	.subtn2{
	 background:#57a0ff,background;
	 border-radius: 50px;
	 background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
	 background: -moz-linear-gradient(top,#57a0ff,#57a1ff); 
 	 background: linear-gradient(top,#57a0ff,#57a1ff);
  	 background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
  	 border: 1px solid #2576A8;
  	 box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
  	 color: #fff;
  	 height:40px;
     text-shadow: 1px 1px 0.5px #22629B;
     outline:none;
    }
    
    .subtn2:hover{
    background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
    background: linear-gradient(top, #8DC9EF, #4E9FD1);
    background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
  	}
  	
	.modal-data2 {
			  visibility: hidden; 
			  z-index: 1001;
			  width: 1000px;
			  min-height: 500px;
			  margin: 100px auto;
			  background-color: #FFFFFF;
			 /* border: 1px solid #C80B14;*/
			 -moz-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
        	 -webkit-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
      /*         box-shadow:0 0 10px #cccccc; 
			  box-shadow: #cccccc; */
			  box-shadow: 0 10px 20px #57a1ff inset,0 -10px 0 #57a0ff inset;
			  padding: 5px;
			  text-align: center;
			  position: fixed;
			  left: 22%;
		}
		
		.modal-data2 td{padding-left: 15px;padding-right: 15px}
		.modal-data2 tr:FIRST-CHILD td{padding: 0px 10px;}
		.modal-data2 tr{padding-top: 30px;height: 25px}
		.modal-data2 form table {
			margin: 0px
		}
</style>
<body style="background: #f5f5f5">
<div id="modal-overlay"></div>
<div class="main">
 	<div class="modal-data1" >
				<div style="height: 60px">
				 <ul>
				  	<li  style="text-align: left;margin-left: 60px;height: 40px;line-height: 40px">
				  		<span>名称：</span>
				  		<span>
				  		 	<input class="name1" type="text" >
				  		</span>
				  		<span>
				  			<button class="findBtn1">
				  				查询
				  			</button>
				  		</span>
				  	</li>
				 </ul>
				</div>
				<div style="width:1000px; height:350px; overflow:scroll;">
			      <form action="">
			        <table class="head1"  style="width: auto;white-space:nowrap;border-spacing:0px">
			        <tr style="background: #f2f2f2;height: 30px;line-height: 20px;" class="sel">
			        <td style="width: 20px"></td> 
			        <td>
			        	名称
			        </td>
			        <td>
			        	编码
			        </td>
			        <td>
			        	简称
			        </td>
			        <td>
			        	描述
			        </td>			       
			        <td>
			        	创建时间
			        </td>
			        <td>
			        	用户名
			        </td>
			        <td>
			        	别名
			        </td>
			        <td>
			        	最后修改时间
			        </td>
			        <td>
			        	用户名
			        </td>
			        <td>
			        	别名
			        </td>
			        <td>
			        	财务组织
			        </td>
			        <td>
			        	状态
			        </td>
			        <td>
			        	类型
			        </td>
			        <td>
			        	金额
			        </td>
			       
			        </tr>
			        <c:forEach items="${remunerationList}" var="remuneration" >
			        	<tr style="margin-top: 45px" >
			        		<td>
			        		 	<input style="width: 15px;height: 15px" type="checkbox"  name="remuneration1"  value="${remuneration.fid}" onclick="checkBox1($(this));">
			        		</td>
			        		<td>${remuneration.fnameL2}</td>
			        		<td>${remuneration.fnumber}</td>
			        		<td>${remuneration.fsimplename}</td>
			        		<td>${remuneration.fdescriptionL2}</td>				        		
			        		<td>${remuneration.fcreatetime}</td>		
			        		<td>${remuneration.createName}</td>
			        		<td>${remuneration.createName}</td>	
			        		<td>${remuneration.flastupdatetime}</td>		
			        		<td>${remuneration.updateName}</td>
			        		<td>${remuneration.updateName}</td>	
			        		<td>${department_remunerationasc.fnameL2 }</td>
							<c:if test="${remuneration.cfstate eq 1}">
								<td>启动</td>
							</c:if>
							<c:if test="${remuneration.cfstate eq 2}">
								<td>禁用</td>
							</c:if>
							<c:if test="${remuneration.cffixation eq 1}">
								<td>固定</td>
							</c:if>
							<c:if test="${remuneration.cffixation eq 2}">
								<td>可变</td>
							</c:if>
							<c:if test="${remuneration.cffixation eq 3}">
								<td>手录</td>
							</c:if>
							<c:if test="${remuneration.cffixation eq 4}">
								<td>内置</td>
							</c:if>
							<td>${remuneration.cfamount}</td>

							</tr>
			        	</c:forEach>
			        </table>
			      </form>
                    <button class="subtn1"
                            style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;left: 280px">
			      	确定
			      </button>
                    <button class="btn"
                            style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;right: 280px">
			      	关闭
			      </button>
			     </div>			    
			</div>
		
	<div class="modal-data2" >
				<div style="height: 60px">
				 <ul>
				  	<li  style="text-align: left;margin-left: 60px;height: 40px;line-height: 40px">
				  		<span>名称：</span>
				  		<span>
				  		 	<input class="name2" type="text" >
				  		</span>
				  		<span>
				  			<button class="findBtn2">
				  				查询
				  			</button>
				  		</span>
				  	</li>
				 </ul>
				</div>
				<div style="width:1000px; height:350px; overflow:scroll;">
			      <form action="">
			        <table class="head2" style="width: auto;white-space:nowrap;border-spacing: 0px">
			        <tr style="background: #f2f2f2;height: 30px;line-height: 20px;" class="sel">
			        <td style="width: 20px"></td> 			      
			        <td>
			        	名称
			        </td>
			        <td>
			        	编码
			        </td>
			        <td>
			        	简称
			        </td>
			        <td>
			        	描述
			        </td>
			        <td>
			        	创建时间
			        </td>
			        <td>
			        	用户名
			        </td>
			        <td>
			        	别名
			        </td>
			        <td>
			        	最后修改时间
			        </td>
			        <td>
			        	用户名
			        </td>
			        <td>
			        	别名
			        </td>
			        <td>
			        	财务组织
			        </td>
			        </tr>
			      <c:forEach items="${positiongradeList}" var="positiongrade" >
			        	<tr style="margin-top: 45px" >
			        		<td>
			        		 	<input style="width: 15px;height: 15px" type="checkbox"  name="positiongrade2"  value="${positiongrade.fid}" onclick="checkBox2($(this));">
			        		</td>
			        		<td>${positiongrade.fnameL2}</td>
			        		<td>${positiongrade.fnumber}</td>
			        		<td>${positiongrade.fsimplename}</td>
			        		<td>${positiongrade.fdescriptionL2}</td>				        		
			        		<td>${positiongrade.fcreatetime}</td>		
			        		<td>${positiongrade.createName}</td>
			        		<td>${positiongrade.createName}</td>	
			        		<td>${positiongrade.flastupdatetime}</td>		
			        		<td>${positiongrade.updateName}</td>
			        		<td>${positiongrade.updateName}</td>	
			        		<td>${department_remunerationasc.fnameL2 }</td>							
							</tr>
			        	</c:forEach>
			        </table>
			      </form>
                    <button class="subtn2"
                            style="width: 150px;position: absolute;bottom: 35px;font-size: 16px;left: 250px">
			      	确定
			      </button>
                    <button class="btn"
                            style="width: 150px;position: absolute;bottom: 35px;font-size: 16px;right: 250px">
			      	关闭
			      </button>
			      </div>
			</div> 	
    <div class="weizhi">
        基础资料>>人力资源>>定薪定级>>修改
    </div>
    <div class="div_body" style="box-shadow: 0 0 5px #cccccc;">
        <div class="div_form">
            <form action="<%=path%>/DrivingSys/updateRemunerationasc" class="form"  onsubmit="return subForm()">
            <input type="text" name="fid" style="visibility:hidden" value="${remunerationasc.fid}"/>
                <div class="fwrz">
                    <div class="div_input">
                        <span class="gn_name">驾校&nbsp;:&nbsp;</span>
                        <input type="text" readonly="readonly" name="fcontrolunitid" value="${department_remunerationasc.fnameL2}" style="color: gray;">
                    </div>
                    <div class="div_input">
                        <span class="gn_name">名称&nbsp;:&nbsp;</span>
                        <input type="text" readonly="readonly" name="fnameL2" value="${remunerationasc.fnameL2}">
                    </div>
                    <div class="div_input">
                        <span class="gn_name">薪酬项目&nbsp;:&nbsp;</span>
                        <div class="remuneration1">
				 			<input class="remuneration is_click_ne"  name="cfremunerationitem" type="text" value="${remunerationasc.cfremunerationitem}" />
							<input  type="hidden" name="remunerationId" value=""  />
				 		</div>
                    </div>
                    <div class="div_input">
                        <span class="gn_name">职级职等&nbsp;:&nbsp;</span>
                        <div class="positiongrade2">
				 			<input type="text" name="zjzdName" class="is_click_ne" value="${remunerationasc.zjzdName }">
							<input  type="hidden" name="positiongradeId" value=""  />
							<input  type="hidden" name="cfzjzdid" class="cfzjzdid" value=""  /> 
				 		</div>
                        
                    </div>
                    <div class="div_input">
                        <span class="gn_name">金额&nbsp;:&nbsp;</span>
                        <input type="text" name="cfamount" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入数字" value="${remunerationasc.cfamount }">
                                        <span style="font-size: 14px;color: red;display: none" class="haoyou">请输入数字</span>
                    </div>
                    <div class="div_input">
                        <span class="gn_name">描述&nbsp;:&nbsp;</span>
                        <input type="text" name="fdescriptionL2" id="gs" value="${remunerationasc.fdescriptionL2 }">
                    </div>
                    <div class="div_tj">
						<shiro:hasPermission name="/sureRemunerationasc">
							<div>
                                <input type="submit" class="input_submit bc" value="">
							</div>
						</shiro:hasPermission>

                        <div>
                            <input type="button" class="input_back fh" value="" onclick="back()"/>
                        </div>
                    </div>
            </form>
        </div>
    </div>
</div>
 </div>   
</body>
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<%@ include file="/WEB-INF/JSP/ajax.jsp" %>
<script type="text/javascript">

//弹出模式框
$('.remuneration1').click(function(){
	$('#modal-overlay').css('visibility','visible')
	$('.modal-data1').css('visibility','visible')
	$('input:checkbox').removeAttr('checked');
})
$('.positiongrade2').click(function(){
	$('#modal-overlay').css('visibility','visible')
	$('.modal-data2').css('visibility','visible')
	$('input:checkbox').removeAttr('checked');
})
//关闭模式窗口
$('.btn').click(function(){
		$('#modal-overlay').css('visibility','hidden')
		$('.modal-data').css('visibility','hidden')
		$('.modal-data1').css('visibility','hidden')
		$('.modal-data2').css('visibility','hidden')
		$('input:checkbox').removeAttr('checked');
})
function checkBox1(obj) {	
// 只有当选中的时候才会去掉其他已经勾选的checkbox，所以这里只判断选中的情况
    if (obj.is(":checked")) {   	
         // 先把所有的checkbox 都设置为不选种
        $('input:checkbox[name=remuneration1]').prop('checked', false);
        // 把自己设置为选中
        obj.prop('checked',true);
    }
}
function checkBox2(obj) {	
// 只有当选中的时候才会去掉其他已经勾选的checkbox，所以这里只判断选中的情况
    if (obj.is(":checked")) {   	
         // 先把所有的checkbox 都设置为不选种
        $('input:checkbox[name=positiongrade2]').prop('checked', false);
        // 把自己设置为选中
        obj.prop('checked',true);
    }
}
//把选中的信息名称填充到输入框中
$('.subtn1').click(function(){
		  var spCodesTemp = "";
	      $('input:checkbox[name=remuneration1]:checked').each(function(i){
	    	if(0==i){
	        spCodesTemp = $(this).val();
	       }else{
	        spCodesTemp += (","+$(this).val());
	       }
	      });
	      $.ajax({
			    url:'<%=path%>/DrivingSys/selRemunerationById', 
			    type: "post",
			    data:{'id':spCodesTemp},
			    dataType:"json",         	
			    success: function(json) {			    	
	            var str=''
	            var ids=''
	            var str1=0
	            for(var i=0;i<json.length;i++){
	            	str+=''+json[i].fnameL2+'  '
	            	str+='   '
	            	if(i>0){
	            	ids+=','+json[i].fid+''
	            	}else{
	            	ids+=''+json[i].fid+''
	            	}
	            	str1+=json[i].cfprice
	            }
	            $('.remuneration1 input[type=text]').val(str)
	            $('.remuneration1 input[type=hidden]').val(ids)
	            $('#modal-overlay').css('visibility','hidden')
				$('.modal-data1').css('visibility','hidden')
				},  
				error: function(){alert('Error');} 
	 			});		
})

$('.subtn2').click(function(){
		  var spCodesTemp = "";
	      $('input:checkbox[name=positiongrade2]:checked').each(function(i){
	    	if(0==i){
	        spCodesTemp = $(this).val();
	       }else{
	        spCodesTemp += (","+$(this).val());
	       }
	      });
	      $.ajax({
			    url:'<%=path%>/DrivingSys/selPositiongradeById', 
			    type: "post",
			    data:{'id':spCodesTemp},
			    dataType:"json",         	
			    success: function(json) {			    	
	            var str=''
	            var ids=''
	            var str1=0
	            for(var i=0;i<json.length;i++){
	            	str+=''+json[i].fnameL2+'  '
	            	str+='   '
	            	if(i>0){
	            	ids+=','+json[i].fid+''
	            	}else{
	            	ids+=''+json[i].fid+''
	            	}
	            	str1+=json[i].cfprice
	            }
	            $('.positiongrade2 input[type=text]').val(str)
	            $('.positiongrade2 input[type=hidden]').val(ids)
	            $('.positiongrade2 input[name=cfzjzdid]').val(ids)
	            $('#modal-overlay').css('visibility','hidden')
				$('.modal-data2').css('visibility','hidden')
				},  
				error: function(){alert('Error');} 
	 			});		
})
//点击查找按钮
$('.findBtn1').click(function(){
	 var name=$('.name1').val()
	 $.ajax({
		    url:'<%=path%>/DrivingSys/selRemunerationByName', 
		    type: "post",
		    data:{'name':name},
		    dataType:"json",         	
		    success: function(json) {
	        var str=''
	        //alert(fid)
	        	for(var i=0;i<json.length;i++) {
	        		if(json[i].fdescriptionL2==null){
	        			json[i].fdescriptionL2=''
	        		}else if(json[i].flastupdatetime==null){
	        			json[i].flastupdatetime='';
	        			json[i].updateName=''
	        		} 
	        		if(json[i].cfamount== null){
	        			json[i].cfamount=''
	        		}
		               str+='<tr style="margin-top: 45px" ><td><input style="width: 15px;height: 15px" '		              
		               str+='type="checkbox" name="remuneration1" value="'+json[i].fid+'"></td>' 		             
		        	   str+='<td>'+json[i].fnameL2+'</td><td>'+json[i].fnumber+'</td>'
	     		   str+='<td>'+json[i].fsimplename+'</td><td>'+json[i].fdescriptionL2+'</td>'	
	     		   str+='<td>'+json[i].fcreatetime+'</td><td>'+json[i].createName+'</td>'
	     		   str+='<td>'+json[i].createName+'</td><td>'+json[i].flastupdatetime+'</td>' 
	     		   str+='<td>'+json[i].updateName+'</td><td>'+json[i].updateName+'</td><td>'+json[i].cdepartment+'</td>'
	     		   if(json[i].cfstate== '1'){
	     			   str+='<td>启动</td>'
	     		   }else{
	     			   str+='<td>禁用</td>'
	     		   }
	     		   if(json[i].cffixation== '1'){
	     			   str+='<td>固定</td>'
	     		   }else if(json[i].cffixation== '2'){
	     			   str+='<td>可变</td>'
	     		   }else if(json[i].cffixation== '3'){
	     			   str+='<td>手录</td>'
	     		   }else{
	     			   str+='<td>内置</td>'
	     		   }
	     		   str+='<td>'+json[i].cfamount+'</td></tr>' 
		            }	

	        $(".head1 tr:not(':first')").remove()
	        $('.head1').append(str)
			},  
				error: function(){alert('Error');} 
				});
		 
})

$('.findBtn2').click(function(){
	 var name=$('.name2').val()
	 $.ajax({
		    url:'<%=path%>/DrivingSys/selPositiongradeByName', 
		    type: "post",
		    data:{'name':name},
		    dataType:"json",         	
		    success: function(json) {
	        var str=''
	        //alert(fid)
	        	for(var i=0;i<json.length;i++) {
	        		if(json[i].fdescriptionL2==null){
	        			json[i].fdescriptionL2=''
	        		}else if(json[i].flastupdatetime==null){
	        			json[i].flastupdatetime='';
	        			json[i].updateName=''
	        		} 
	        		if(json[i].cfamount== null){
	        			json[i].cfamount=''
	        		}
		               str+='<tr style="margin-top: 45px" ><td><input style="width: 15px;height: 15px" '		              
		               str+='type="checkbox" name="positiongrade2" value="'+json[i].fid+'"></td>' 		             
		        	   str+='<td>'+json[i].fnameL2+'</td><td>'+json[i].fnumber+'</td>'
	     		   str+='<td>'+json[i].fsimplename+'</td><td>'+json[i].fdescriptionL2+'</td>'	
	     		   str+='<td>'+json[i].fcreatetime+'</td><td>'+json[i].createName+'</td>'
	     		   str+='<td>'+json[i].createName+'</td><td>'+json[i].flastupdatetime+'</td>' 
	     		   str+='<td>'+json[i].updateName+'</td><td>'+json[i].updateName+'</td><td>'+json[i].cdepartment+'</td>'
	     		   
		            }	

	        $(".head2 tr:not(':first')").remove()
	        $('.head2').append(str)
			},  
				error: function(){alert('Error');} 
				});
		 
})

function subForm(){
    var cfremunerationitem=null;
    var zjzdName=null;
    cfremunerationitem  =$("input:text[name=cfremunerationitem]").val();
    zjzdName = $("input:text[name=zjzdName]").val();
    if(cfremunerationitem ==null || cfremunerationitem==''){
        alert("薪酬项目不能为空!")
        return false;
    }
    if(zjzdName ==null || zjzdName ==''){
        alert("职级职等不能为空!")
        return false;
    }
    return true;
}

//返回
function back(){
    location = '<%=path%>/DrivingSys/queryRemunerationasc/look.action';
}
</script>
</html>